<%-- 
    Document   : index
    Created on : 18/05/2013, 12:20:03 PM
    Author     : alumnos
--%>
<%@page import="java.util.List"%>
<%@page import="upc.practica.beans.alumno"%>
<%@page import="upc.practica.beans.alumno"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%
    List<alumno> lsAlumnos = (List<alumno>)request.getAttribute("lsAlumnos");
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Listado de alumnos</h1>                      
        <br>
        <a href="registro.jsp" >Registrar</a>
        <table border="1" cellspacing ="2" cellpadding ="2">
            <tr>
                <th>Nombres</th>
                <th>Apellidos</th>
                <th>DNI</th>
                <th>Correo Electronico</th>
                <th>Codigo de Matricula</th>
            </tr>
            <% for(alumno alumno:lsAlumnos){ %>
            <tr>
                <td><%= alumno.getNombres() %></td>
                <td><%= alumno.getApellidos() %></td>
                <td><%= alumno.getDni() %></td>
                <td><%= alumno.getCorreoElectronico() %></td>
                <td><%= alumno.getCodigoMatricula() %></td>
            </tr>
            <% } %>
        </table>
    </body>
</html>
